package com.example.demo01.mapper;

import com.example.demo01.pojo.Record;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface RecordMapper {
    void addRecord(Record record);

    List<Record> getRecordByTime(String time);

    List<Record> getRecordByUsername(String username);

    Record getRecordByUsernameAndTime(String username, String date);
}
